package com.itlong.cloud.tapd;



import com.itlong.cloud.tapd.service.CompletedWorkOrdersNumberService;
import com.itlong.cloud.tapd.util.GetMonthlyTaskCount;
import com.itlong.cloud.tapd.util.GetTime;

import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * <des>
 *
 * <des>
 *
 * @create Date 2021-09-08
 **/
public  class Test1 {
    public static void main(String[] args) throws ParseException {
        for (int i = 1; i <= Calendar.getInstance().getActualMaximum(Calendar.DAY_OF_MONTH); i++) {
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
            String date = (new SimpleDateFormat("yyyy").format(Calendar.getInstance().getTime())) + "-0" + GetTime.getLastMonth() + "-" + i;
            Date weekDay = format.parse(date);
            Calendar calendar =Calendar.getInstance();
            calendar.setTime(weekDay);
            System.out.println((calendar.getTime().toString().substring(0,3)));
            if ((calendar.getTime().toString().substring(0,3)).equals("Sat") || (calendar.getTime().toString().substring(0,3)).equals("Sun")) {
                continue;
            }
            System.out.println(i);
            String date1 = (new SimpleDateFormat("yyyy").format(Calendar.getInstance().getTime())) + "-0" + GetTime.getLastMonth() + "-" + i;
            System.out.println(date1);
        }
    }
}
